package com.jetty;

import java.net.InetSocketAddress;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.thread.ThreadPool;

public class JettyDemo {

	public static void main(String[] args) throws Exception {
		Server server = new Server(new InetSocketAddress(8000));
		server.setHandler(new HelloHandler());
		//server.setHandler(new ServletContextHandler());
		server.setStopTimeout(1000);
		server.start();
		System.out.println("服务启动成功。。。");
	}
	
	
	
}
